package cn.eeepay.framework.service.unTransactionalImpl.wetchatPublic;

import cn.eeepay.framework.db.pagination.Page;
import cn.eeepay.framework.model.wetchatPublic.PublicAccountMsgBatchEntity;
import cn.eeepay.framework.util.ResultModel;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 公众号模板消息推送批次记录表
 *
 * @author quanhz
 * @email
 * @date 2020-07-29 15:31:47
 */
public interface PublicAccountMsgBatchService {

    PublicAccountMsgBatchEntity getById(Long id);

    ResultModel save(PublicAccountMsgBatchEntity publicAccountMsgBatch);

    ResultModel importBatch(MultipartFile file, PublicAccountMsgBatchEntity publicAccountMsgBatch)
            throws Exception;

    void removeByPushBatchNo(String pushBatchNo);

    List<PublicAccountMsgBatchEntity> queryPage(
            Page<PublicAccountMsgBatchEntity> page, PublicAccountMsgBatchEntity parseObject);


    int updateTimeBlock(PublicAccountMsgBatchEntity publicAccountMsgBatch);

    ResultModel send(String pushBatchNo);

    ResultModel stop(Long id);

    ResultModel start(Long id);

    ResultModel suspend(Long id);
}
